package asrobot;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.*;
class asrobot {
    public static void asrobot(String[] args) throws AWTException {
        Runtime rs = Runtime.getRuntime();
        try{
            rs.exec("notepad");
        }
        catch (IOException e){
            System.out.println(e);
        }
        Robot robot = new Robot();
        robot.keyPress(KeyEvent.VK_B);
        robot.keyPress(KeyEvent.VK_E);
        robot.keyPress(KeyEvent.VK_N);
        robot.keyPress(KeyEvent.VK_V);
        robot.keyPress(KeyEvent.VK_E);
        robot.keyPress(KeyEvent.VK_N);
        robot.keyPress(KeyEvent.VK_U);
        robot.keyPress(KeyEvent.VK_T);
        robot.keyPress(KeyEvent.VK_O);
    }
}